﻿using System.Linq;
namespace MMS.Respository
{
    using System;
    using System.Collections.Generic;

    public partial class GoodsInfo : BaseRespository<Model.GoodsInfo>, IRespository.IGoodsInfo
    {
        public new void Modify(Model.GoodsInfo Model, params string[] updateProperties)
        {
            var model = EFFatory.db.Set<Model.GoodsInfo>().Where(o => o.GId == Model.GId).FirstOrDefault();
            model.GId = Model.GId;
            model.GCId = Model.GCId;
            model.GCostPrice = Model.GCostPrice;
            model.GSellPrice = Model.GSellPrice;
            model.GIntegralRatio = Model.GIntegralRatio;
            model.GRemark = Model.GRemark;
            model.GInmax = Model.GInmax;
            model.GInmin = Model.GInmin;
            model.GInventory = Model.GInventory;
            model.GName = Model.GName;
            EFFatory.db.SaveChanges();
        }
    }
}